package com.wh.system.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@Accessors(chain = true)
public class Role implements Serializable {
    private Long id;
    private String name;
    private String sn;

    //当前角色拥有的权限 - 接收前端传递的权限数据
    @TableField(exist = false)
    private List<Long> permissionIds = new ArrayList<>();

    //当前角色拥有的菜单 - 接收前端传递的菜单数据
    @TableField(exist = false)
    private List<Long> menuIds = new ArrayList<>();
    /**
     * 前端传递的菜单数据
     */
    @TableField(exist = false)
    private List<Long> selectedMenuId;
    /**
     * 前端传递的权限数据
     */
    @TableField(exist = false)
    private List<Long> selectedPressionId;

}
